package week5;

import java.sql.SQLOutput;
import java.util.Arrays;

public class q4 {
    public static void main(String[] args) {
        int a[]={25,63,54,91,14,5,17,25,88,32,44};
        Arrays.sort(a);
        System.out.println(Arrays.toString(a));

        int x = 14;
        int index =Arrays.binarySearch(a, x);
        System.out.println("14在数组a的索引是："+ index);
    }
}
